﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true"
    CodeFile="Config.aspx.cs" Inherits="Admin_RelationConfig_Config" %>

<asp:Content ID="Content2" ContentPlaceHolderID="script" runat="Server">
    <style type="text/css">
        .style3
        {
            height: 90px;
        }
        .style4
        {
            width: 25px;
        }
        .style5
        {
            height: 90px;
            width: 25px;
        }
        .style6
        {
            width: 6px;
        }
    </style>
    <script language="javascript" type="text/javascript">
// <![CDATA[

        function btnAdd_onclick() {

        }




// ]]>
    </script>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="body" runat="Server">
    <div class="container">
        <div class="titlebg">
            <div class="title">
                关联操作</div>
        </div>
        <div class="content">
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table style="width: 500px; margin-left: 30px; margin-top: 20px;">
                        <tr>
                            <td rowspan="3">
                                ERP项目：<br />
                                <br />
                                <asp:ListBox ID="lb_RelationList" runat="server" DataSourceID="ODSEList" DataTextField="ProjectName"
                                    DataValueField="Id" Height="550px" Width="300px" OnSelectedIndexChanged="lb_RelationList_SelectedIndexChanged"
                                    AutoPostBack="True" style=" margin-right:20px;"></asp:ListBox>
                            </td>
                            <td valign="top">
                                可关联明源项目：<br />
                                <br />
                                <asp:ListBox ID="lb_NoHaveBeRelationList" runat="server" Height="220px" Width="300px"
                                    DataSourceID="ODSNRList" DataTextField="ProjectName" DataValueField="Id"></asp:ListBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <table width="100%">
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnAdd" runat="server" Text="添加" OnClick="btnAdd_Click" />
                                        </td>
                                        <td>
                                            <asp:Button ID="btnDel" runat="server" Text="删除" OnClick="btnDel_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td valign="bottom">
                                已关联明源项目：<br />
                                <br />
                                <asp:ListBox ID="lb_HaveBeRelationList" runat="server" Height="220px" Width="300px" DataSourceID="ODSRList"
                                    DataTextField="ProjectName" DataValueField="Id"></asp:ListBox>
                            </td>
                        </tr>
                    </table>
                    <asp:ObjectDataSource ID="ODSEList" runat="server" SelectMethod="GetERPProjectList"
                        TypeName="PKURG.CostSplit.Business.Relation"></asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="ODSRList" runat="server" SelectMethod="GetRelationMProjectList"
                        TypeName="PKURG.CostSplit.Business.Relation">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="lb_RelationList" Name="eProjectId" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                    <asp:ObjectDataSource ID="ODSNRList" runat="server" SelectMethod="GetNoRelationMProjectList"
                        TypeName="PKURG.CostSplit.Business.Relation">
                        <SelectParameters>
                            <asp:ControlParameter ControlID="lb_RelationList" Name="eProjectId" PropertyName="SelectedValue"
                                Type="Int32" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
</asp:Content>
